package com.adcc.ags.cgw.job;

import com.adcc.ags.cgw.proxy.UserProxy;
import com.adcc.utility.log.Log;
import org.quartz.*;

/**
 * 定时重置报文计数作业
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class ResetMsgCountJob implements Job{

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        try{
            Log.info("reset user message count begin");
            UserProxy.getInstance().resetMsgCount();
            Log.info("rest user message count end");
        }catch (Exception ex){
            Log.error(ResetMsgCountJob.class.getName(),"execute() error",ex);
        }
    }
}
